package com.project.maven.demo_maven.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.project.maven.demo_maven.impl.ILoginService;
import com.project.maven.demo_maven.mapper.ILoginMapper;
import com.project.maven.demo_maven.entry.LoginEntity;


/**
 * 
 * <p>
 * Title: 登录
 * </p>
 * @author 
 * @date 2017年11月22日
 */
@Service("loginService")
public class LoginService implements ILoginService{
	@Autowired
	ILoginMapper loginMapper;
	
	@Override
	public void insert(LoginEntity loginEntityNew) {
		loginMapper.insert(loginEntityNew);
	}


	@Override
	public LoginEntity select(String token) {
		return loginMapper.select(token);
	}

	@Override
	public void update(LoginEntity entity) {
         loginMapper.update(entity);	
	}

	@Override
	public int delete(String token) {
		return loginMapper.delete(token);
	}

	@Override
	public List<LoginEntity> getAll() {
		return loginMapper.getAll();
	}

	
	
}




